<template>
  <div>count: {{ counterStore.count }} {{ counterStore.oddOrEven }}</div>
  <!-- increment函数接受 event 参数 -->
  <button @click="counterStore.increment">+</button>
  <!-- increment函数没有接受参数 -->
  <button @click="counterStore.increment()">+</button>
  <button>-</button>
</template>

<script lang="ts" setup>
import useCounterStore from "./store/modules/counter";

const counterStore = useCounterStore();
</script>

<style></style>
